echo  "***********************************************************"
echo  "***************Start load .synopsys_dc.setup***************"
echo  "***********************************************************"
echo  "********************personal variables*********************"


set PRJ_ROOT_PATH ../..

echo "rtl file path"
set RTL_PATH $PRJ_ROOT_PATH/src

echo "config file path"
set CONFIG_PATH $PRJ_ROOT_PATH/syn/config

echo "scripts file path"
set SCRIPT_PATH $PRJ_ROOT_PATH/syn/scripts

echo "unmapped file path"
set UNMAPPED_PATH $PRJ_ROOT_PATH/syn/unmapped

echo "mapped file path"
set MAPPED_PATH $PRJ_ROOT_PATH/syn/mapped

echo "report file path"
set REPORT_PATH $PRJ_ROOT_PATH/syn/report

echo "work file path"
set WORK_PATH $PRJ_ROOT_PATH/syn/work

#DC software path 
set DC_PATH   /home/synopsys/syn/O-2018.06-SP1

echo "===================Define my library directory=============="

#Maps a design library to a UNIX directory. This directory is used to store intermediate representations of designs.
define_design_lib work -path $WORK_PATH

echo "symbol library"
set SYMBOL_PATH /home/ic_libs/TSMC.90/aci/sc-x/symbols/synopsys

echo "lib path"
set LIB_PATH /home/ic_libs/TSMC.90/aci/sc-x/synopsys

echo "*******************system variables settings****************"
echo "************library path automatic search settings**********"

set_app_var search_path [list  . $search_path \
                                 $LIB_PATH \
							                   $SYMBOL_PATH \
								                 $RTL_PATH \
								                 $SCRIPT_PATH \
								                 ${DC_PATH}/libraries/syn \
						]
# This virables are automatically set if you perform ultra command.
# Specify for use during optimization
# You do not need to be anything to access the standard library.
# DC is setup to use this lirary by default

echo "*******************DC' own library path*********************"
set_app_var synthetic_library [list dw_foundation.sldb standard.sldb]

echo "********************Target library name ********************"
set_app_var target_library [list slow.db ]
								 
							
echo "**********************Link library name*********************"
set_app_var link_library [list * ${target_library} dw_foundation.sldb]

echo "********************Symbol Library name*********************"						 ]
set_app_var symbol_library [list tsmc090.sdb]

#Source the naming rules
						  
echo "************************************************************"
echo "***************End of Load .synopsys_dc.setup***************"
echo "************************************************************"
